home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 8
/
FM Towns Free Software Collection 8.iso
/
t_os
/
zousan
/
src
/
graph.h
< prev
next >
Wrap
Text File
|
1994-06-01
|
2KB
|
86 lines
/*
* EGB graphics function By N.Takahashi
*
* ver0.1 1993/11/07
*/
#ifndef __U_GRAPH
#define __U_GRAPH
void G_dosterm( void );
int G_color32k( int green, int red, int blue );
void G_pset( int x, int y, int color );
void G_put( int x1, int y1, int x2, int y2, void *pbuf );
void G_get( int x1, int y1, int x2, int y2, void *pbuf );
void G_palette( int color, int green, int red, int blue, int vsync );
void G_rectangle( int x1, int y1, int x2, int y2 );
void G_active( int page, int disp, int pri );
void G_screen( int smode, int page );
void G_cls( void );
void G_enlarge( int mx, int my, int tx, int ty, int sx, int sy );
void G_boxfull( int x1, int y1, int x2, int y2, int color );
void G_box( int x1, int y1, int x2, int y2, int color );
/* Global variable */
extern char Egb[];
extern char Para[];
#endif /* __U_GRAPH */
/* 関数一覧 */
/*
1 関数 : G_enlarge
mx,my = 画面の拡大率
tx,ty = 表示開始位置
sx,sy = 画面の大きさ
2 関数 : G_cls
引数なし
3 関数 : G_screen
smode = 画面のモ-ド (1 - 18)
page = ペ-ジ (0,1)
4 関数 : G_active
page = ペ-ジ (0,1)
disp = 表示ペ-ジ (0 - 3)
pri = プライオリティ (0,1)
5 関数 : G_palette
color = 色 (0-15-255)
green,red,blue = 設定階調 (0 - 255)
vsync = vsyncを待つかどうか (0,1) 1:待つ
6 関数 : G_put
x1,y1,x2,y2 = 座標
pbuf = パタ-ンバッファ
7 関数 : G_get
x1,y1,x2,y2 = 座標
pbuf = パタ-ンバッファ
8 関数 : G_pset
x,y = 座標
color = 色 (0-15-255-32767 | 32768)
9 関数 : G_color32k
green,red,blue = 設定階調 (0 - 255)
10 関数 : G_rectangle
x1,y1,x2,y2 = 座標
11 関数 : G_dosterm
DOSコンソールに戻す。
12 関数 : G_boxfull
x1,y1,x2,y2 = 座標
color = 色 (0-15-255-32767 | 32768)
13 関数 : G_box
x1,y1,x2,y2 = 座標
color = 色 (0-15-255-32767 | 32768)
*/